package com.iss.itemplate.util;

import java.io.File;

/**
 * Created by isoft-work 5 on 9/15/14.
 */
public class Utils {
   public static String getWebAppPath(String contextPath) {
      if (contextPath != null && !"".equals(contextPath)) {
         int lastSepIndex = contextPath.lastIndexOf(File.separator, contextPath.length() - 2);
         return contextPath.substring(0, lastSepIndex);
      }
      return "";
   }
}
